/*
 * Copyright (C) 2011 Olivier Pothin and contributors
 *
 * GNU General Public License v2.0
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/**
 * 
 * @author Olivier Pothin
 *
 */
package opot.dto;

import opot.db.WordProvider;
import android.net.Uri;
import android.provider.BaseColumns;


public final class Stat {
	
	private Stat(){}
	
	public static final class Stats implements BaseColumns {
	
	private Stats(){}
		
	public static final String TABLE_NAME = "quizz_session";
	
	private static final String SCHEME = "content://";
	
	private static final String PATH_STATS = "/stats";
	
	private static final String PATH_STATS_ID = "/stats/";
	
	/**
     * 0-relative position of a stats ID segment in the path part of a stat ID URI
     */
    public static final int PATH_STATS_ID_POSITION = 1;
    
    public static final Uri CONTENT_URI =  Uri.parse(SCHEME + WordProvider.AUTHORITY + PATH_STATS);
    
    public static final Uri CONTENT_ID_URI_BASE
    = Uri.parse(SCHEME + WordProvider.AUTHORITY + PATH_STATS_ID + "#");
    
    /*
	 * Column definitions
	 */
    
    public static final String COLUMN_NAME_NB_GOOD_ANSWER = "nb_good_answer";
    public static final String COLUMN_NAME_NB_BAD_ANSWER = "nb_bad_answer";
    public static final String COLUMN_NAME_NB_QUESTIONS = "nb_questions";
    public static final String COLUMN_NAME_DIFFICULTY = "difficulty_level";
    public static final String COLUMN_NAME_START_DATE = "created";
    public static final String COLUMN_NAME_END_DATE = "end_date";
	}
}
